Skip to content

feat(workspace): add workspace view command and surface ID in auth status#4

Open
obs-gh-virjramakrishnan wants to merge 3 commits into
mainfrom
vramakrishnan/workspace-view
Open

feat(workspace): add workspace view command and surface ID in auth status#4
obs-gh-virjramakrishnan wants to merge 3 commits into
mainfrom
vramakrishnan/workspace-view

Conversation

@obs-gh-virjramakrishnan

Copy link
Copy Markdown
Collaborator

Summary

  • Adds observe workspace view — returns the current workspace's id, label, timezone, locale, and createdDate as JSON
  • Adds Workspace ID to observe auth status output (human-readable and JSON)

The workspace ID (the numeric suffix in the Observe UI URL, e.g. /workspace/42587555) was previously invisible from the CLI. You could see the workspace name in auth status but had no way to get the ID without opening a browser.

Test plan

  • bun run typecheck, bun run lint, bun run format, bun test (255 pass, +3 new workspace view tests)
  • Live-verified observe workspace view and observe auth status against a real tenant — both show the numeric workspace ID

🤖 Generated with Claude Code

sfc-gh-vramakrishnan and others added 2 commits June 16, 2026 14:59
…atus

Adds `observe workspace view` which returns the current workspace's
id, label, timezone, locale, and createdDate as JSON. The workspace ID
(the numeric suffix in the UI URL) was previously invisible in the CLI.

Also adds `Workspace ID` to `auth status` output so it's visible
without needing a separate command.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…rged

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread src/app.ts
content: contentRoutes,
"ingest-token": ingestTokenRoutes,
datastream: datastreamRoutes,
workspace: workspaceRoutes,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

workspace is a concept thats being removed -- are we sure we need to add it to the cli?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need it for creating links to the customer's observe account, since the URL contains the workspaceID, e.g. https://146206672945.observe-eng.com/workspace/42587555/service-explorer. If we do https://146206672945.observe-eng.com/service-explorer the link does not work. I like having the agent provide this link, as the customer can directly see the data in observe that they set up via agent. I would remove this once we remove workspaces from the URLs. If we cannot have this API, I can also just not have the agent provide links at the end.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think having it in auth status is fine, perhaps marked (deprecated), but I wouldn't add observe workspace view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants